<?php

?>

<?=Yii::$app->view->renderFile('@app/modules/admin/views/common/tab_recommend.php', ['tab' => 'index'])?>
<div class="ui equal width grid">
    <div class="column">
        <div class="panel">
            <div class="panel-alone-content">
                <form class="ui form">
                    <div class="field">
                        <label>客户姓名:</label>
                        <input type="text" name="member-name" placeholder="不能少于3个字" value="<?=isset($info['member_name']) ? $info['member_name'] : ''?>"
                            disabled>
                    </div>
                    <div class="field">
                        <label>推荐人姓名:</label>
                        <input type="text" name="re-name" placeholder="" value="<?=isset($info['recommend_name']) ? $info['recommend_name'] : ''?>"
                            disabled>
                    </div>
                    <div class="field">
                        <label>实际跟进人姓名:</label>
                        <div class="ui selection dropdown _dropdown" tabindex="0">
                            <input type="hidden" name="opertion-id" <?php if (isset($info['opertion_id'])): ?>value="
                            <?=$info['opertion_id']?>"
                            <?php endif;?>>
                            <i class="dropdown icon"></i>
                            <div class="<?php if (!isset($info['opertion_id'])): ?>default<?php endif;?> text">
                                <?=isset($info['opertion_id']) ? $user_arr[$info['opertion_id']] : '请选择类型'?>
                            </div>
                            <div class="menu transition hidden" tabindex="-1">
                                <?php foreach ($user_arr as $key => $item): ?>
                                <div class="item <?php if (isset($info['opertion_id']) == $key): ?>active selected<?php endif;?> "
                                    data-value="<?=$key?>">
                                    <?=$item?>
                                </div>
                                <?php endforeach;?>

                            </div>
                        </div>
                    </div>
                    <input type="hidden" name="_csrf" id='csrf' value="<?=Yii::$app->request->csrfToken?>">
                    <input type="hidden" name="re-id" value="<?=isset($info['id']) ? $info['id'] : 0?>">
                    <button class="ui green basic button re-save  " type="button">提交</button>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    require(['modules/recommend/set'], function(set) {
        set.re_down('dropdown')
        set.re_set()
    });
</script>